package runnable;

import java.io.File;

import utils.SSHUtils;
import utils.Utils;

public class FileOperations implements Runnable{
	
	private String filename;
	private int op;
	public FileOperations(String filename, int op)
	{
		this.filename = filename;
		this.op = op;
	}
	
	@Override
	public void run() {
		switch(op)
		{
			case 0:
				if(!SSHUtils.ScpFrom(filename,filename))
				{
					Utils.out("Error retreving s3 file");
					return;
				}break;
			case 1:
				SSHUtils.CmdTo("rm -r"+filename);break;
			
		}
		
	}

}
